package com.zust.service.impl;

import com.zust.entity.User;
import com.zust.mapper.UserMapper;
import com.zust.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created on 2018/3/14.
 * 用户服务接口实现
 * @author Jie
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public Integer add(User user) {
        return userMapper.insert(user);
    }
}
